package com.cnap.multiclouldmgmt.scheduleTask;

import com.cnap.multiclouldmgmt.MulticlouldmgmtApplicationTests;
import com.cnap.multiclouldmgmt.repository.master.K8sClusterEventsMapper;
import com.cnap.multiclouldmgmt.service.MultiCloudMgmtService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.mock.mockito.MockBean;

class CleanK8sEventsScheduledTaskTest extends MulticlouldmgmtApplicationTests {


    @MockBean
    private K8sClusterEventsMapper k8sClusterEventsMapper;

    @MockBean
    private MultiCloudMgmtService multiCloudMgmtService;

    @Autowired
    private CleanK8sEventsScheduledTask cleanK8sEventsScheduledTask;

    @Test
    void cleanEvents() {
        cleanK8sEventsScheduledTask.cleanEvents();
    }
}